FROM java:openjdk-8-jre-alpine
ARG version
ADD target/ucs-log.jar app.jar
RUN echo "Asia/shanghai" > /etc/timezone
#RUN echo "47.18.251.85 peer1" > /etc/hosts
#RUN echo "47.18.251.86 peer2" > /etc/hosts
#RUN echo "47.18.251.89 peer1mirror" > /etc/hosts
#RUN echo "47.18.251.90 peer2mirror" > /etc/hosts
ENTRYPOINT java -Xms512m -Xmx1027m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5008 -jar /app.jar